gusucode.com > 支持向量机工具箱 - LIBSVM OSU_SVM LS_SVM源码程序 > 支持向量机工具箱 - LIBSVM OSU_SVM LS_SVM\stprtool\datasets\pimg.m
function pimg(x,width,height,cdepth) % PIMG displays vector x as an image. % pimg(x,width,height,cdepth) % % PIMG displays given vector x as an image of given % schape. Color depth is assumed to be <0,1>. % % See also X2IMG, IMG2X, IMG2XI. % % Statistical Pattern Recognition Toolbox, Vojtech Franc, Vaclav Hlavac % (c) Czech Technical University Prague, http://cmp.felk.cvut.cz % Written Vojtech Franc (diploma thesis) 02.01.2000 % Modifications % 25-sep-2001, V.Franc, cdepth argument added. % 16-apr-2001, V.Franc, created. % if nargin < 4, cdepth = [0,1]; end imshow(x2img(x,width,height),cdepth); return;